← Index
NYTProf Performance Profile   
For flows_to_es.pl
  Run on Mon May 9 23:27:59 2016
Reported on Mon May 9 23:28:09 2016

Filename(eval 86)[/usr/share/perl5/Sub/Quote.pm:5]
StatementsExecuted 27 statements in 402µs
Eval Invoked At/usr/share/perl5/Sub/Quote.pm line 5
Sibling evals1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
22234µs15.7msSearch::Elasticsearch::CxnPool::Static::::newSearch::Elasticsearch::CxnPool::Static::new
11112µs23µsSub::Quote::::BEGIN@4.19 Sub::Quote::BEGIN@4.19
1117µs7µsMethod::Generate::Constructor::::BEGIN@7.20 Method::Generate::Constructor::BEGIN@7.20
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1{
222µs my $default_for_cxns = ${$_[1]->{"\$default_for_cxns"}};
31400ns my $_QUOTED = ${$_[1]->{"\$_QUOTED"}};
4261µs234µs
# spent 23µs (12+11) within Sub::Quote::BEGIN@4.19 which was called: # once (12µs+11µs) by Sub::Quote::_clean_eval at line 4
no warnings 'closure';
# spent 23µs making 1 call to Sub::Quote::BEGIN@4.19 # spent 11µs making 1 call to warnings::unimport
5
# spent 15.7ms (34µs+15.6) within Search::Elasticsearch::CxnPool::Static::new which was called 2 times, avg 7.83ms/call: # once (28µs+13.7ms) by Search::Elasticsearch::new at line 53 of Sub/Defer.pm # once (6µs+1.92ms) by Search::Elasticsearch::new at line 40 of /opt/flows/lib/lib/perl5/Search/Elasticsearch.pm
sub Search::Elasticsearch::CxnPool::Static::new {
6package Method::Generate::Constructor;
7
# spent 7µs within Method::Generate::Constructor::BEGIN@7.20 which was called: # once (7µs+0s) by Sub::Quote::_clean_eval at line 12
BEGIN {
811µs $^H = "2018";
91500ns ${^WARNING_BITS} = "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\003";
1016µs %^H = (
11 );
121300µs17µs}
# spent 7µs making 1 call to Method::Generate::Constructor::BEGIN@7.20
131600ns my $class = shift;
141200ns $class = ref($class) if ref($class);
151300ns if ($class ne "Search::Elasticsearch::CxnPool::Static") {
16 if ($Moo::MAKERS{$class}) {
17 Moo->_constructor_maker_for($class,"Search::Elasticsearch::CxnPool::Static");
18 return $class->new(@_);
19 } elsif ($INC{"Moose.pm"} and my $meta = Class::MOP::get_metaclass_by_name($class)) {
20 return $meta->new_object($class->BUILDARGS(@_));
21 }
22 }
2312µs135µs my $args = $class->BUILDARGS(@_);
# spent 35µs making 1 call to Search::Elasticsearch::CxnPool::Static::BUILDARGS
241500ns die "BUILDARGS did not return a hashref" unless ref($args) eq 'HASH';
2512µs if (my @missing = grep !exists $args->{$_}, qw(cxn_factory logger seed_nodes serializer)) {
26 die "Missing required arguments: ".join(', ', sort @missing);
27 }
2811µs my $new = bless({}, $class);;
2914µs $new->{"current_cxn_num"} = (
30 exists $args->{"current_cxn_num"}
31 ? $args->{"current_cxn_num"}
32 : "0"
33 );
341700ns if (exists $args->{"cxn_factory"}) {
35 $new->{"cxn_factory"} = $args->{"cxn_factory"};
36 }
3712µs11µs $new->{"cxns"} = (
38 exists $args->{"cxns"}
39 ? $args->{"cxns"}
40 : $default_for_cxns->($new)
41 );
421600ns if (exists $args->{"logger"}) {
43 $new->{"logger"} = $args->{"logger"};
44 }
451600ns $new->{"randomize_cxns"} = (
46 exists $args->{"randomize_cxns"}
47 ? $args->{"randomize_cxns"}
48 : "1"
49 );
501400ns $new->{"retries"} = (
51 exists $args->{"retries"}
52 ? $args->{"retries"}
53 : "0"
54 );
551500ns if (exists $args->{"seed_nodes"}) {
56 $new->{"seed_nodes"} = $args->{"seed_nodes"};
57 }
5811µs if (exists $args->{"serializer"}) {
59 $new->{"serializer"} = $args->{"serializer"};
60 }
6113µs113.7ms $new->Search::Elasticsearch::CxnPool::Static::BUILD($args);
6214µs return $new;
63 }
6411µs $_QUOTED->[3] = \&Search::Elasticsearch::CxnPool::Static::new
65}
6616µs1;
67
68;